from django.urls import path, re_path
from . import views
from .views import GetAuthImg, Login, Register, Index

app_name = 'user' # 设置命名空间

urlpatterns = [
    # ex:
    path('', Index.as_view(), name='index'),
    # /user/register
    path('register', Register.as_view(), name='register'),
    # /user/login
    path('login', Login.as_view(), name='login'),
    # /user/get_auth_img
    path('get_auth_img', GetAuthImg.as_view(), name='get_auth_img'),
]